# -*- coding: utf-8 -*-
# @Time    : 2021/3/18 19:35
# @Author  : tanxin
# @Email   : 1275841988@qq.com
# @File    : tx2.py
# @Software: PyCharmx

#1、
# x = int(input("请输入x:"))
# if 20<x<30 or x<-100:
#     print(x)
# else:
#     print("false")

#2、
# y = int(input("请输入y:"))
# print("y为奇数表达式y%2=",y%2)
# if y%2==0:
#     print("false")
# else:
#     print("true")

#3、
# a = int(input("请输入一个a:"))
# b = int(input("请输入一个b:"))
# print("请输出表达式的值:",a%b+a/b*b==a)

#4、
# str1=input("请输入一个字符串:")
# if "abc" in str1:
#     print("true")
# else:
#     print("false")

#5、
#print(127>>2)


#6、
#print("3 or print('5') and not print('abc')的值:",3 or print("5") and not print('abc'))

#7、
# a = 5
# b = 7
# print("表达式的值:",1.0+a/b)

#8、
# x = int(input("输入一个数:"))
# y = int(input("输入一个数:"))
# z = int(input("输入一个数:"))
#(x<z and y>=z) or (x>=z and y<z)
# if  x<z or y<z :
#     print("true")
# else:
#     print("false")

#9、
import random
str1 = ""
for i in range(12):
    str1+=str(random.randint(0,1))
print(str1)
j=random.randint(0,11)
print(f"第{j+1}个灯")
if  str1[j] == "1":
    print("胜利")
else:
    print("失败")


